﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using NHibernateDown2Earth.Core.Entities;

namespace NHibernateDown2Earth.Core.Mapping
{
	public class OrderMap: ClassMap<Order>
	{
		public OrderMap()
		{
			Id(x => x.Id);
			Map(x => x.Date);

			HasMany<OrderDetail>(x => x.Items);
		}
	}
}
